<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'booksDetail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="images/main.css">
	<link rel="stylesheet" type="text/css" href="images/jquery-ui.css">
	<script type="text/javascript" src="images/jquery.js"></script>
	<script type="text/javascript" src="images/jquery-ui-datepicker.js"></script>
	<script type="text/javascript">
		$(function(){
			$("#publishTime").datepicker();
		});
	</script>

  </head>
  
  <body>
	<div class="mainBox">
		<form action="saveBook" method="post">
		<s:textfield name="book.bookId" type="hidden" theme="simple"/>
		<s:textfield name="book.bookStorageTime" type="hidden" theme="simple"/>
			<table class="table_style" cellpadding="3" cellspacing="1" border="0">
			<s:set var="datat" value="#{0:'图书',1:'光盘',2:'期刊'}"/>
				<s:if test="book.dataType!=2 || at!=2">
				<tr>
				<td class="td_sty">名称</td><td class="td_sty2"><s:textfield name="book.bookName" theme="simple" cssClass="text"/></td>
				<td class="td_sty">索书号</td><td class="td_sty2"><s:textfield name="book.bookCallNo" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">条码号</td><td class="td_sty2"><s:textfield name="book.bookBarCode" theme="simple" cssClass="text"/></td>
				<td class="td_sty">典藏地</td><td class="td_sty2"><s:textfield name="book.bookCollection" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">典藏类型</td><td class="td_sty2"><s:select list="datat" name="book.dataType" theme="simple" cssClass="text"/></td>
				<td class="td_sty">责任人</td><td class="td_sty2"><s:textfield name="book.bookChargePerson" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">出版社</td><td class="td_sty2"><s:textfield name="book.bookPublishing" theme="simple" cssClass="text"/></td>
				<td class="td_sty">出版时间</td><td class="td_sty2"><s:textfield name="book.bookPublishingTime" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">ISBN</td><td class="td_sty2"><s:textfield name="book.ISBN" theme="simple" cssClass="text"/></td>
				<td class="td_sty">光盘(<a onclick="">选择</a>)</td><td class="td_sty2"><s:textfield name="" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">单价(元)</td><td class="td_sty2"><s:textfield name="book.bookPrice" theme="simple" cssClass="text"/></td>
				<td class="td_sty">数量(借出/在库)</td><td class="td_sty2"><s:textfield name="book.bookLoanCount" theme="simple" cssClass="txtc"/>/<s:textfield name="book.bookCount" theme="simple" cssClass="txtc"/></td></tr>
				</s:if><s:else>
				<tr>
				<td class="td_sty">名称</td><td class="td_sty2"><s:textfield name="book.bookName" theme="simple" cssClass="text"/></td>
				<td class="td_sty">类型</td><td class="td_sty2"><s:textfield name="book.periType" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">期刊号</td><td class="td_sty2"><s:textfield name="book.periNo" theme="simple" cssClass="text"/></td>
				<td class="td_sty">典藏地</td><td class="td_sty2"><s:textfield name="book.bookCollection" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">典藏类型</td><td class="td_sty2"><s:select list="datat" name="book.dataType" theme="simple" cssClass="text"/></td>
				<td class="td_sty">责任人</td><td class="td_sty2"><s:textfield name="book.bookChargePerson" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">出版社</td><td class="td_sty2"><s:textfield name="book.bookPublishing" theme="simple" cssClass="text"/></td>
				<td class="td_sty">期数</td><td class="td_sty2"><s:textfield name="book.perPeriods" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">ISBN</td><td class="td_sty2"><s:textfield name="book.ISBN" theme="simple" cssClass="text"/></td>
				<td class="td_sty">光盘(<a onclick="">选择</a>)</td><td class="td_sty2"><s:textfield name="" theme="simple" cssClass="text"/></td></tr>
				<tr>
				<td class="td_sty">年价(元)</td><td class="td_sty2"><s:textfield name="book.bookPrice" theme="simple" cssClass="text"/></td>
				<td class="td_sty">数量(借出/在库)</td><td class="td_sty2"><s:textfield name="book.bookLoanCount" theme="simple" cssClass="txtc"/>/<s:textfield name="book.bookCount" theme="simple" cssClass="txtc"/></td></tr>
				</s:else>
				<tr><td class="td_sty"></td><td colspan="3" style="background-color:#fefefe;padding-left:10px"><input type="submit" value="确认保存" class="buttons"/></td></tr>
			</table>
		</form>
	</div>
  </body>
</html>
